import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JComponent;

class MyGlassPane extends JComponent
{
  private static final long serialVersionUID = 1L;
  private Font font = new Font("monospaced", Font.PLAIN, 64);

  MyGlassPane()
  {
    System.out.println("MyGlassPane()");
    setName("MyGlassPane");
  }

  @Override
  protected void paintComponent(Graphics g)
  {
    System.out.println("MyGlassPane.paintComponent()");
    Graphics2D g2d = (Graphics2D)g;
    g2d.setFont(font);
    g2d.setColor(Color.YELLOW);
    g2d.drawString("Jeroen Gerlofsma", 100, 200);
  }
}